package com.liao.seckill.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "goods")
public class TbGoods {

    @Id
    private Integer id;
    private String name;
    private Double price;
    @Column(name = "stock_num")
    private Integer stockNum;
    private String detail;
}
